package com.baseproject.json;

import java.lang.reflect.Type;
import java.util.List;

/**
 * Created by hp on 2017/7/14.
 */

public interface IJsonProcessor {

    <M> M strToModel(String jsonStr, Class<M> modelClazz);

    <M> M strToModel(String jsonStr, Type type);

    <M> String modelToStr(M model);

    <M> List<M> strToListModel(String jsonStr, Class<M> modelClazz);

    <M> String listModelToStr(List<M> models);

}
